
function roleButtonFormatter(value, row, rowIndex) {
    if(row.status==1){
        return "<div class='btn-group'>" +
            "<a class='btn btn-default btn-sm' href='javascript:roleMenu_obj(" + row.roleId + ");'>" +
            "<i class='glyphicon glyphicon-list icon-white'>角色菜单</i> " +
            "</a>" +
            "<a class='btn btn-default btn-sm' href='javascript:status_obj(" + row.roleId + ",2);'>" +
            "<i class='glyphicon glyphicon-ok icon-white'>关闭</i> " +
            "</a>" +
            "<a class='btn btn-default btn-sm' href='javascript:edit_obj(" + row.roleId + ");'>" +
            "<i class='glyphicon glyphicon-edit icon-white'>修改</i> " +
            "</a>" +
            "</div>";
    }else{
        return "<div class='btn-group'>" +
            "<a class='btn btn-default btn-sm' href='javascript:status_obj(" + row.roleId + ",1);'>" +
            "<i class='glyphicon glyphicon-unchecked icon-white'>打开</i> " +
            "</a>" +
            "<a class='btn btn-default btn-sm' href='javascript:edit_obj(" + row.roleId + ");'>" +
            "<i class='glyphicon glyphicon-edit icon-white'>修改</i> " +
            "</a>" +
            "</div>";
    }

}
/**状态样式*/
function stateFormatter(value) {
    if (value == 1) {
        return ' <span class="label label-sm label-success">可用</span>';
    } else {
        return '<span class="label label-sm label-danger">关闭</span>';
    }
}
